<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>xhr拿数据</title>
    <link rel="stylesheet" href="../css/test.css">
</head>

<body>
    <button class="btn">新增</button>
    <table border="1" style="border-collapse: collapse;">
        <tr>
            <td>姓名</td>
            <td>密码</td>
            <td>族人</td>
            <td>电话</td>
        </tr>
        <tbody class="tbody"></tbody>
    </table>
    <!-- 点击增加的模态框 -->
    <div id="md_box">
        <div class="edit">
            <span>新增用户</span>
            <span class="tspan">X</span>
        </div>
        <ul id="ul_li">
            <li>
                <span>姓名</span>
                <input type="text" class="user_name">
            </li>
            <li>
                <span>密码</span>
                <input type="text" class="user_age">
            </li>
            <li>
                <span>族人</span>
                <input type="text" class="user_eth">
            </li>
            <li>
                <span>电话</span>
                <input type="text" class="user_phone">
            </li>
        </ul>
        <div class="md_div"><button id="firm">确定</button></div>
    </div>
    <!-- 点击编辑的模态框 -->
    <div id="bj_box">
        <div class="edit">
            <span>编辑用户</span>
            <span class="tspan">X</span>
        </div>
        <ul id="ul_li">
            <input type="hidden" class="user_id">
            <li>
                <span>姓名</span>
                <input type="text" class="user_name">
            </li>
            <li>
                <span>密码</span>
                <input type="text" class="user_age">
            </li>
            <li>
                <span>族人</span>
                <input type="text" class="user_eth">
            </li>
            <li>
                <span>电话</span>
                <input type="text" class="user_phone">
            </li>
        </ul>
        <div class="md_div"><button id="firm_u">确定</button></div>
    </div>
    <script src="../js/jquery-3.6.0.js"></script>
    <script src="../js/test.js"></script>
</body>

</html>